package com.aca.market.service;

import com.aca.market.entity.Catalog;
import com.aca.market.entity.IndentItem;
import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;
import java.util.Map;

public interface ICatalogService extends IService<Catalog> {

    //itemId与分类名的映射表
    Map<Long,String> getItemIdTypeNameMap();

    List<String> getAllNames();

    //获取分类id:分类名映射表
    Map<Long,String> getAllIdNameMap();

    //获取分类id:分类名映射表
    Map<Long,String> typeIdNameMap(List<IndentItem> indentItems);

    IPage<Catalog> selectItemPage(Page<Catalog> page, Wrapper<Catalog> queryWrapper);

    Map<Catalog,List<Catalog>> getCatalogMap();
}
